Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
HTTP payload parser.
const Http = require("http");
const Subtext = require("subtext");
Http.createServer((request, response) => {
Subtext.parse(
request,
null,
{ parse: true, output: "data" },
(err, parsed) => {
response.writeHead(200, { "Content-Type": "text/plain" });
response.end("Payload contains: " + parsed.payload.toString());
},
);
}).listen(1337, "127.0.0.1");
console.log("Server running at http://127.0.0.1:1337/");
See the API Reference
A Node bug in versions below Node v4.3.2 meant that the Buffer.byteLength
function did not work correctly, and as such, using maxBytes
options with multipart payloads will mistake the file buffer size to be incorrectly as bigger than it is. Your options here are either to upgrade to Node version greater than v4.3.2 or increase maxBytes to allow some error in calculation. Background info in this issue here.
FAQs
HTTP payload parsing
The npm package subtext receives a total of 43,938 weekly downloads. As such, subtext popularity was classified as popular.
We found that subtext demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.